/*
 * @Author: Sunye
 * @Date: 2025-04-02 10:12:59
 * @LastEditors: Sunye
 * @LastEditTime: 2025-04-08 14:27:54
 * @Description:
 */
import Layout from '@/components/layout/layout-page.vue'

const routes = [
  {
    path: '/',
    component: Layout,
    name: 'layout',
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        name: 'Home',
        meta: {
          title: '首页',
          icon: 'home',
          hidden: false,
        },
      },
    ],
  },
  {
    path: '/permission',
    component: Layout,
    name: 'permission',
    redirect: '/permission/userPermission',
    meta: {
      title: '权限管理',
      icon: 'ibm-cloud-hyper-protect-crypto-services',
      hidden: false,
    },
    children: [
      {
        path: '/permission/userPermission',
        component: () =>
          import('@/views/permission-manage/user-permission.vue'),
        name: 'User',
        meta: {
          title: '用户权限',
          icon: 'user',
          hidden: false,
        },
      },
      {
        path: '/permission/countPermission',
        component: () =>
          import('@/views/permission-manage/count-permission.vue'),
        name: 'Count',
        meta: {
          title: '账号权限',
          icon: 'account',
          hidden: false,
        },
      },
    ],
  },

  {
    path: '/login',
    component: () => import('@/views/login/user-login.vue'),
    name: 'login',
    meta: {
      title: '登录',
      icon: 'home',
      hidden: true,
    },
  },
]

export default routes
